package com.beidu.lottery.call.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.beidu.lottery.call.entity.serializer.Sensitive;
import com.beidu.lottery.call.entity.serializer.SensitiveStrategyEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 抽奖活动参与列表
 * </p>
 *
 * @author 北渡
 * @since 2023-11-23
 */
@Data
@Builder
@ApiModel(value = "ActivityLotteryListVO")
@NoArgsConstructor
@AllArgsConstructor
public class ActivityLotteryListVO implements Serializable {


    @ApiModelProperty(value = "抽奖记录ID")
    private Integer id;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "手机号-脱敏")
    @Sensitive(strategy = SensitiveStrategyEnum.PHONE)
    private String phoneNum;

    @ApiModelProperty(value = "参与时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime participateDate;

    @ApiModelProperty(value = "消耗积分")
    private Integer consumeScore;

    @ApiModelProperty(value = "奖品名称")
    private String prizeName;

    @ApiModelProperty(value = "奖品类型(0:实体奖品, 1:虚拟奖品, 2:积分奖品)")
    private Integer prizeType;

    @ApiModelProperty(value = "订单id")
    private Integer orderId;


}
